package com.jumi.microservice.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jm.member.common.core.web.page.TableDataInfo;
import com.jumi.microservice.entity.JmIdentityAuthentication;
import com.jumi.microservice.entity.JmUser;

public interface PageService {

    Page getPage(Page page, Wrapper wrapper);


    static TableDataInfo getDataTableInfo(Page page){
        TableDataInfo DataInfo = new TableDataInfo<>();
        DataInfo.setCode(200);
        DataInfo.setMessage("查询成功");
        DataInfo.setRows(page.getRecords());
        DataInfo.setTotal(page.getTotal());
        return DataInfo;
    }
}
